import request from '@/utils/request'
export default{
    getBanner(bannerId){
        return request({
            url:`/educms/banneradmin/queryBanner/${bannerId}`,
            method:'get'
        })
    },
    getBannerList(page,size,bannerQuery){
        return request({
            url:`/educms/banneradmin/queryBannerCondition/${page}/${size}`,
            method:'post',
            data:bannerQuery
        })
    },
    updateBanner(banner){
        return request({
            url:`/educms/banneradmin/updateBanner`,
            method:'put',
            data:banner
        })
    },
    deleteBanner(bannerId){
        return request({
            url:`/educms/banneradmin/deleteBanner/${bannerId}`,
            method:'delete'
        })
    },
    addBanner(banner){
        return request({
            url:`/educms/banneradmin/addBanner`,
            method:'post',
            data:banner
        })
    },
}